package com.leadingsoft.pwxk.model;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

import com.alibaba.fastjson.annotation.JSONField;

import lombok.Getter;
import lombok.Setter;

/**
 * @author: lipan 2018年5月11日
 * @description: ( 主要原辅材料及燃料信息 )
 * 
 */

@Entity
@Getter
@Setter
public class ProductMaterial extends Basic {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
 
	/**
	 * 燃料信息
	 */
	@OneToMany(cascade = CascadeType.ALL)
	@JSONField(name = "FUEL")
	List<FuelInfo> fuelInfoList;

	/**
	 * 原料及辅料信息
	 */
	@OneToMany(cascade = CascadeType.ALL)
	@JSONField(name = "MATERIAL")
	List<ProductMaterialInfo> materialInfoList;

	/**
	 * 有机溶剂信息
	 */
	@OneToMany(cascade = CascadeType.ALL)
	@JSONField(name = "SOLVENT")
	List<ProductSolvent> SolventList;

	/**
	 * 处理药剂信息
	 */
	@OneToMany(cascade = CascadeType.ALL)
	@JSONField(name = "potion")
	List<ProductPotion> Potion;

}
